package com.daftmaster.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.daftmaster.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Author Daft_V
 * @Date 2022/3/20 17:01
 */
@Mapper
public interface UserMapper extends BaseMapper<UserEntity> {
    /**
     * 通过账号查询t_user表
     * @param user_account 账号
     * @return UserEntity实体
     */
    @Select("select * from t_user where user_account=#{user_account}")
    UserEntity selectUserByAccont(@Param("user_account") String user_account);
}
